import React, { useEffect } from "react";
import { px } from "./util/index";
type Props = {};

const App = (props: Props) => {
  // 正确创建一个名为 difference的变量，使用该变量实现函数封装
  const difference: number = 1000;
  function app(num: number) {
    console.log("difference变量", num);
  }
  app(difference);
  useEffect(() => {
    console.log(px([3, 1, 5, 4, 2]), "排序");
  }, []);
  return <div>App221</div>;
};

export default App;
